const express = require('express');


// 使用express框架的路由
const router = express.Router();

// 导入路由处理函数
const departMsgHandler = require('../router_handler/department_msg.js')

// 获取部门的信息 id
router.post('/getDepartmentMsg', departMsgHandler.getDepartmentMsg)
// 获取部门的信息列表
router.post('/getDepartmentMsgList', departMsgHandler.getDepartmentMsgList)
// 查询用户的read_list read_status
router.post('/getUserMsg', departMsgHandler.getUserMsg)
// 当用户点击信息时，更新read_list
router.post('/updateReadList', departMsgHandler.updateReadList)
// 将新发布的信息的id 插入到 read_list中
router.post('/insertReadList', departMsgHandler.insertReadList)
// 将删除的信息的id 从 read_list中删除 参数 id message_id
router.post('/deleteReadList', departMsgHandler.deleteReadList)




module.exports = router;